package com.attendance.www.hr.dao.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.attendance.www.hr.beans.ClosedBean;

public interface ClosedExtMapper {
    
	List<ClosedBean> getClosedPageList(@Param("startNum")Integer startNum,@Param("pageCount")Integer pageCount);
	
	Integer getClosedCount();
	
	/**
	 * 查询封账期内休假等申请id的集合
	 * @return 
	 */
	public List<Integer> getRequestIdByClosed(@Param("approvalState")Integer approvalState, 
							@Param("year")Integer year, @Param("month")Integer month);
	/**
	 * 查询封账期内补签申请id的集合
	 * @param approvalState
	 * @param year
	 * @param month
	 * @return
	 */
	public List<Integer> getRetroactiveIdByClosed(@Param("approvalState")Integer approvalState, 
			@Param("year")Integer year, @Param("month")Integer month);
	
	/**
	 * 查询封账期内有补签审批中的考勤id的集合
	 * @param approvalState
	 * @param year
	 * @param month
	 * @return
	 */
	public List<Integer> getAttendanceIdByClosed(@Param("approvalState")Integer approvalState, 
			@Param("year")Integer year, @Param("month")Integer month);
	
}